# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=mpdris2
pkgver=0.9.1
pkgrel=2
pkgdesc="MPRIS V2.1 support for mpd"
url="https://github.com/eonpatapon/mpDris2"
arch="noarch"
license="GPL-3.0-only"
depends="py3-mpd2 py3-dbus py3-gobject3 py3-mutagen"
makedepends="autoconf automake intltool gettext-dev"
options="!check" # no tests
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/eonpatapon/mpDris2/archive/$pkgver.tar.gz"
builddir="$srcdir/mpDris2-$pkgver"

build() {
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="260b5c910303766a7730110a1ca52c859b4e8ba41ba4fe842187cb3dbacca1bc096a93cce2e26e6c82b640f2905411e3011251566b47404466cedfb2f43860ee  mpdris2-0.9.1.tar.gz"
